package io.geekidea.boot.system.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@Schema(description = "权限信息")
public class PermissionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "code是否有效")
    private boolean codeInValid;

    @Schema(description = "序号")
    private int num;

    @Schema(description = "表单信息")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String formInfo;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "菜单编码")
    private String code;

    @Schema(description = "是否有列表url")
    private Boolean hasListUrl;
}
